﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Administracija.DataLayer;

namespace Administracija
{
    public partial class SpisakModula : Form
    {
        AdministracijaDataContext dc = new AdministracijaDataContext();

        public static int PrikaziSpisakModula()
        {
            SpisakModula f = new SpisakModula();
            f.ShowDialog();
            return ((Modul)f.bindingSource1.Current).ModulId;
        }

        public SpisakModula()
        {
            InitializeComponent();
        }

        private void SpisakModula_Load(object sender, EventArgs e)
        {
            Common.MultiLanguage.Tool.PrevediFormu(this);

            bindingSource1.DataSource = dc.Moduls;
        }
    }
}
